<?php
class loadimages extends MY_Controller{
	
	function __construct(){
		parent::__construct();
	}
	
	function index(){
		
	}
	
	function ImagesSmall(){
        $id = $this->uri->segment(4,0);
        $code = $this->uri->segment(3,0);
        switch($code){
        	case "info" 	: 	$this->load->model('infomod');$query = $this->infomod->get($id);break;
        	case "news" 	: 	$this->load->model('newsmod');$query = $this->newsmod->get($id);break;
        	case "member" 	: 	$this->load->model('membermod');$query = $this->membermod->get($id);break;
        	case "images" 	: 	$this->load->model('imagesmod');$query = $this->imagesmod->get($id);break;
        }
        $this->load->view('finalizeView/images_small',array('query'=>$query));
    }
    
	function ImagesMedium(){
		$id = $this->uri->segment(4,0);
        $code = $this->uri->segment(3,0);
        switch($code){
        	case "info" 	: 	$this->load->model('infomod');$query = $this->infomod->get($id);break;
        	case "news" 	: 	$this->load->model('newsmod');$query = $this->newsmod->get($id);break;
        	case "member" 	: 	$this->load->model('membermod');$query = $this->membermod->get($id);break;
        	case "images" 	: 	$this->load->model('imagesmod');$query = $this->imagesmod->get($id);break;
        }
        $this->load->view('finalizeView/images_medium',array('query'=>$query));
    }
    
	function ImagesLarge(){
		$id = $this->uri->segment(4,0);
        $code = $this->uri->segment(3,0);
        switch($code){
        	case "info" 	: 	$this->load->model('infomod');$query = $this->infomod->get($id);break;
        	case "news" 	: 	$this->load->model('newsmod');$query = $this->newsmod->get($id);break;
        	case "member" 	: 	$this->load->model('membermod');$query = $this->membermod->get($id);break;
        	case "images" 	: 	$this->load->model('imagesmod');$query = $this->imagesmod->get($id);break;
        }
        $this->load->view('finalizeView/images_large',array('query'=>$query));
    }
    
	function ImagesTiny(){
		$id = $this->uri->segment(4,0);
        $code = $this->uri->segment(3,0);
        switch($code){
        	case "info" 	: 	$this->load->model('infomod');$query = $this->infomod->get($id);break;
        	case "news" 	: 	$this->load->model('newsmod');$query = $this->newsmod->get($id);break;
        	case "member" 	: 	$this->load->model('membermod');$query = $this->membermod->get($id);break;
        	case "images" 	: 	$this->load->model('imagesmod');$query = $this->imagesmod->get($id);break;
        }
        $this->load->view('finalizeView/images_tiny',array('query'=>$query));
    }
    
	function ImagesThumbs(){
		$id = $this->uri->segment(4,0);
        $code = $this->uri->segment(3,0);
        switch($code){
        	case "info" 	: 	$this->load->model('infomod');$query = $this->infomod->get($id);break;
        	case "news" 	: 	$this->load->model('newsmod');$query = $this->newsmod->get($id);break;
        	case "member" 	: 	$this->load->model('membermod');$query = $this->membermod->get($id);break;
        	case "images" 	: 	$this->load->model('imagesmod');$query = $this->imagesmod->get($id);break;
        }
        $this->load->view('finalizeView/images_thumbs',array('query'=>$query));
    }
	
}